<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">
<h:body>
	<p:panel header="Dados do Endereço">

		<h:panelGrid columns="1" columnClasses="label, value"
			styleClass="grid">
			<h:outputText value="Logradouro: " />
			<p:inputText
				value="#{empresaAction.empresa.endereco.nomeRua}" size="35" />

			<h:outputText value="Complemento: " />
			<p:inputText
				value="#{empresaAction.empresa.endereco.pontoReferencia}"
				size="50" />

			<h:outputText value="Bairro: " />
			<p:inputText value="#{empresaAction.empresa.endereco.bairro}"
				size="12" />

			<h:outputText value="Cidade: " />
			<p:inputText value="#{empresaAction.empresa.endereco.cidade}"
				size="15" />

			<h:outputText value="UF: " />
			<p:selectOneMenu value="#{empresaAction.empresa.endereco.uf}"
				effect="fade" height="250"  >
				<f:selectItem itemLabel="Selecione" itemValue=""/>
				<f:selectItems  value="#{empresaAction.estados}"  />

			</p:selectOneMenu>
			<p:inputText rendered="false" value="#{empresaAction.empresa.endereco.uf}"
				size="3" />
		</h:panelGrid>
	</p:panel>




</h:body>


</html>